home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / util / misc / VMM_src.lha / VMM / cat / VMM_Cat.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-16  |  6.0 KB  |  131 lines

  1. /****************************************************************
  2.    This file was created automatically by `FlexCat 1.5'
  3.    from "cat/VMM-Handler.cd".
  4.  
  5.    Do NOT edit by hand!
  6. ****************************************************************/
  7.  
  8. #include <clib/locale_protos.h>
  9.  
  10. static LONG VMM_Version = 1;
  11. static const STRPTR VMM_BuiltInLanguage = (STRPTR) "english";
  12.  
  13. struct FC_Type
  14. {   LONG   ID;
  15.     STRPTR Str;
  16. };
  17.  
  18.  
  19. const struct FC_Type _msgNotEnoughMem = { 0, "Not enough memory" };
  20. const struct FC_Type _msgNoPagingFile = { 1, "Couldn't open paging file" };
  21. const struct FC_Type _msgNoSpace = { 2, "Not enough space on disk" };
  22. const struct FC_Type _msgFailedIo = { 3, "IO to paging device failed" };
  23. const struct FC_Type _msgFileIsDir = { 4, "Pagefile is a directory" };
  24. const struct FC_Type _msgInternal = { 5, "Internal error.\n"\
  25.     "Contact author: apel@tecmath.de" };
  26. const struct FC_Type _msgInhibitFailed = { 6, "Couldn't inhibit DOS from using partition" };
  27. const struct FC_Type _msgWrongBlocksize = { 7, "FFS partition with blocksize != 512 bytes" };
  28. const struct FC_Type _msgNoDiskinfo = { 8, "Couldn't get information about disk" };
  29. const struct FC_Type _msgNotValidated = { 9, "Partition not validated" };
  30. const struct FC_Type _msgOutOfBounds = { 10, "Internal error:\nAccessing page out of partition bounds\n"\
  31.     "Contact author: apel@tecmath.de" };
  32. const struct FC_Type _msgNoFFS = { 11, "Pseudo partition not on a FFS disk" };
  33. const struct FC_Type _msgNoConfigFile = { 12, "Couldn't find configuration file.\n"\
  34.     "Use the 'Use' or 'Save' button in the GUI" };
  35. const struct FC_Type _msgCorruptCfgFile = { 13, "Either VMM.prefs or\nVMM_MMU.config is corrupted." };
  36. const struct FC_Type _msgVolumeNotFound = { 14, "Invalid location of paging file\n(Volume not found)" };
  37. const struct FC_Type _msgLowVersion = { 15, "Need at least V37 of OS to run" };
  38. const struct FC_Type _msgNoDOS = { 16, "Couldn't open dos.library" };
  39. const struct FC_Type _msgNoIntuition = { 17, "Couldn't open intuition.library" };
  40. const struct FC_Type _msgNoGfx = { 18, "Couldn't open graphics.library" };
  41. const struct FC_Type _msgNoUtility = { 19, "Couldn't open utility.library" };
  42. const struct FC_Type _msgNoExpansion = { 20, "Couldn't open expansion.library" };
  43. const struct FC_Type _msgNoCommodities = { 21, "Couldn't open commodities.library" };
  44. const struct FC_Type _msgWrongCPU = { 22, "Need a MMU to run this program" };
  45. const struct FC_Type _msgNoAddrSpace = { 23, "Couldn't allocate address space\nfor virtual memory" };
  46. const struct FC_Type _msgNoPrefs = { 24, "Couldn't locate VMM main program" };
  47. const struct FC_Type _msgNoStatwindow = { 25, "Couldn't open statistics window" };
  48. const struct FC_Type _msgNoRexx = { 26, "Couldn't open rexxsyslib.library" };
  49. const struct FC_Type _msgGenericError = { 27, "%s from task %s:\n%s" };
  50. const struct FC_Type _msgMessage = { 28, "Message" };
  51. const struct FC_Type _msgError = { 29, "Error" };
  52. const struct FC_Type _msgOK = { 30, "OK" };
  53. const struct FC_Type _msgReboot = { 31, "Reboot" };
  54. const struct FC_Type _msgNoDevice = { 32, "Couldn't open %s" };
  55. const struct FC_Type _msgNoTimer = { 33, "Couldn't initialize timer" };
  56. const struct FC_Type _msgPPTooLarge = { 34, "Not enough space for pseudo-partition.\n"\
  57.     "Space left on device is %ld MB" };
  58. const struct FC_Type _msgTooFragmented = { 35, "Your harddisk is too fragmented\nLargest contiguous chunk is %ld MB.\n"\
  59.     "Resize pseudo-partition or reorganize your disk" };
  60. const struct FC_Type _msgVMMLibStillOpen = { 36, "Can't quit. VMM.library is still opened" };
  61. const struct FC_Type _msgNotEnoughFrames = { 37, "Can't quit. Not enough page frames\nto store still allocated memory in." };
  62. const struct FC_Type _msgStillVMAllocated = { 38, "There is still virtual memory allocated\n"\
  63.     "These chunks are loaded into physical memory\nand VMM will quit." };
  64. const struct FC_Type _msgUnusedPartition = { 39, "Partition %s has not been used\nfor paging yet. Overwrite it ?" };
  65. const struct FC_Type _msgUseCancel = { 40, "Use|Cancel" };
  66. const struct FC_Type _msgDeleteFile = { 41, "File %s is not\ncontiguous or has wrong size.\nDelete it ?" };
  67. const struct FC_Type _msgDeleteCancel = { 42, "Delete|Cancel" };
  68. const struct FC_Type _msgPageDevChanged = { 43, "You cannot change parameter of the paging device\n"\
  69.     "while VMM is running. Your changes will only take\n"\
  70.     "effect after the next start of VMM." };
  71. const struct FC_Type _msgVMFree = { 44, "Virtual memory free:" };
  72. const struct FC_Type _msgPublicFastFree = { 45, "Public Fast Mem free:" };
  73. const struct FC_Type _msgNumPF = { 46, "Number of pagefaults:" };
  74. const struct FC_Type _msgNumRead = { 47, "Number of pages read:" };
  75. const struct FC_Type _msgNumWritten = { 48, "Number of pages written:" };
  76. const struct FC_Type _msgNumFrames = { 49, "Number of page frames:" };
  77. const struct FC_Type _msgPagesUsed = { 50, "Pages used on device:" };
  78. const struct FC_Type _msgDynMapFailed = { 51, "Could not install pagetable for dynamic MMU configuration.\n"\
  79.     "Task stopped." };
  80.  
  81. extern struct LocaleBase *LocaleBase;
  82. extern UWORD VMD_NestCnt;
  83.  
  84. static struct Catalog *VMM_Catalog = NULL;
  85.  
  86. /******************************************************************************************/
  87.  
  88. void OpenVMMCatalog (void)
  89. VMD_NestCnt++;
  90. if (LocaleBase != NULL)
  91.   VMM_Catalog = OpenCatalog(NULL, (STRPTR) "VMM-Handler.catalog",
  92.                            OC_BuiltInLanguage, VMM_BuiltInLanguage,
  93.                            OC_Version, VMM_Version,
  94.                            TAG_DONE);
  95. VMD_NestCnt--;
  96. }
  97.  
  98. /******************************************************************************************/
  99.  
  100. void CloseVMMCatalog (void)
  101. VMD_NestCnt++;
  102. if (LocaleBase != NULL)
  103.   CloseCatalog(VMM_Catalog);
  104. VMM_Catalog = NULL;
  105. VMD_NestCnt--;
  106. }
  107.  
  108. /******************************************************************************************/
  109.  
  110. STRPTR GetVMMString(APTR fcstr)
  111. STRPTR defaultstr;
  112. LONG strnum;
  113. STRPTR tmp;
  114.  
  115. strnum = ((struct FC_Type *) fcstr)->ID;
  116. defaultstr = ((struct FC_Type *) fcstr)->Str;
  117.  
  118. if (LocaleBase != NULL)
  119.   {
  120.   VMD_NestCnt++;
  121.   tmp = GetCatalogStr(VMM_Catalog, strnum, defaultstr);
  122.   VMD_NestCnt--;
  123.   return (tmp);
  124.   }
  125.  
  126. return (defaultstr);
  127. }
  128.